package cn.sykj.car.entity;

import cn.sykj.car.utils.DiffEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 银行账户管理
 * </p>
 *
 * @author xuming
 * @since 2021-06-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ConfigBankAccount对象", description="银行账户管理")
public class ConfigBankAccount extends Model<ConfigBankAccount> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "开户行")
    @DiffEntity(action = "开户行")
    private String mainBankName;

    @ApiModelProperty(value = "支行")
    @DiffEntity(action = "支行")
    private String branchBankName;

    @ApiModelProperty(value = "银行编码")
    @DiffEntity(action = "银行编码")
    private String mainBankCode;

    @ApiModelProperty(value = "开户名")
    @DiffEntity(action = "开户名")
    private String userName;

    @ApiModelProperty(value = "账号")
    @DiffEntity(action = "账号")
    private String userAccount;

    @ApiModelProperty(value = "备注")
    @DiffEntity(action = "备注")
    private String remarks;

    private Date createTime;

    private Date updateTime;

    private String createUser;

    private String updateUser;

    @ApiModelProperty(value = "删除标记：0-正常  1-删除")
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String MAIN_BANK_NAME = "main_bank_name";

    public static final String BRANCH_BANK_NAME = "branch_bank_name";

    public static final String MAIN_BANK_CODE = "main_bank_code";

    public static final String USER_NAME = "user_name";

    public static final String USER_ACCOUNT = "user_account";

    public static final String REMARKS = "remarks";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    public static final String CREATE_USER = "create_user";

    public static final String UPDATE_USER = "update_user";

    public static final String DEL_FLAG = "del_flag";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
